/**
 * 
 */
package org.codesmell.util.rendermap.js;

import org.codesmell.util.rendermap.ValueRenderer;

/**
 * @author Uwe Schäfer, (schaefer@thomas-daily.de)
 */
public class Function implements ValueRenderer
{
    private static final long serialVersionUID = 1L;

    @Override
    public String render(final Object value)
    {
        final String v = (value != null) ? value.toString() : "";
        return "function(){" + v + "}";
    }

}
